package com.woniuxy.intellihome.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniuxy.intellihome.entity.VAdmin;
import com.woniuxy.intellihome.entity.VCollect;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2021-08-11
 */
public interface VCollectMapper extends BaseMapper<VCollect> {

    //通过用户Id获取该用户的所有收藏了商品详情
    @Select("select * from v_collect where user_id=#{userId}")
    List<VCollect> getAllByUserId(int userId);

}
